<?php

namespace App\Models\Members;

use App\Models\Members;
use App\Models\Members\Bankcard;
use Illuminate\Database\Eloquent\Model;

class MemberDraw extends Model
{
    protected $table = 'member_draw';

    protected $fillable = [
        'member_id', 'money', 'bankcard_id', 'status'
    ];

    public function member(){
        return $this->hasOne(Members::class, 'id', 'member_id');
    }

    public function bank(){
        return $this->hasOne(Bankcard::class, 'id', 'bankcard_id');
    }
}
